﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="LivingMasterForm.aspx.cs" ValidateRequest="false" Inherits="App_Input_LivingMasterForm"
    Title="生活模型模板" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
        function selectButtonClick(commond,itemId){
             document.getElementById('<%=hidModify.ClientID%>').value = '';
             if ('DELE' == commond && !window.confirm('确定要删除当前项目吗？')) {
                return false;
             }             
             document.getElementById('<%=hidLivingId.ClientID%>').value = itemId; 
             document.getElementById('<%=hidCommond.ClientID%>').value = commond; 
             if ('EDIT' == commond) {
                document.getElementById('<%=hidModify.ClientID%>').value = '1';
             }
        }
    </script>

    <table border="0" class="table_border_line">
        <tr>
            <td align="left">

                <script language="javascript" type="text/javascript">
                 (new TitleBar('TemplateBar', '生活模型模板')).showBar();
                </script>

            </td>
        </tr>
    </table>
     <asp:Table ID="TblTemplate" runat="server" BorderWidth="1px" CssClass="GridView_table"
                                BorderStyle="Solid">
                                <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
                                    <asp:TableHeaderCell ID="TableHeaderCell1" CssClass="GridView_head_grayblue" Width="20%"
                                        runat="server"><b>生活时段</b></asp:TableHeaderCell>
                                    <asp:TableHeaderCell ID="TableHeaderCell2" CssClass="GridView_head_grayblue" Width="1px"
                                        runat="server" Visible="false"><b>项目编号</b></asp:TableHeaderCell>
                                    <asp:TableHeaderCell ID="TableHeaderCell5" CssClass="GridView_head_grayblue" Width="1px"
                                        runat="server" Visible = "false"><b>生活内容编号</b></asp:TableHeaderCell>                                                                                
                                    <asp:TableHeaderCell ID="TableHeaderCell6" CssClass="GridView_head_grayblue" Width="20%"
                                        runat="server"><b>生活内容</b></asp:TableHeaderCell>                                        
                                    <asp:TableHeaderCell ID="TableHeaderCell3" CssClass="GridView_head_grayblue" Width="50%"
                                        runat="server"><b>生活方式</b></asp:TableHeaderCell>
                                    <asp:TableHeaderCell ID="TableHeaderCell4" CssClass="GridView_head_grayblue" Width="10%"
                                        runat="server"><b>操作</b></asp:TableHeaderCell>
                                </asp:TableHeaderRow>
                            </asp:Table>
    <table border="0" width="100%" runat="server" id="tableItems">
        <tr>
            <td>
                <table width="100%">
                    <tr>
                        <td style="width: 6px">
                        </td>
                        <td colspan="4">
                            <asp:HiddenField ID="hidLivingId" runat="server" />
                            <asp:HiddenField ID="hidCommond" runat="server" />
                            <asp:HiddenField ID="hidModify" runat="server" />
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6px"></td>
                        <td style="WIDTH: 173px">&nbsp; 生活时段：</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtBeginTime" runat="server" Width="79px" MaxLength="5" />
                            ～
                            <asp:TextBox ID="txtEndTime" runat="server" Width="79px" MaxLength="5" />
                            (格式 hh:mm)</td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 6px"></td>
                        <td style="WIDTH: 173px">&nbsp; 生活方式 ：</td>
                        <td colspan="3">
                            <asp:DropDownList ID="cmbLivingType" runat="server"  />
                        </td>
                        <td style=""></td>
                    </tr>                    
                    <tr>
                        <td style="width: 6px"></td>
                        <td style="WIDTH: 173px">&nbsp; 生活内容 ：</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtLivingName" runat="server" Width="99%" Rows="3" TextMode="MultiLine" /></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 6px"></td>
                        <td style="WIDTH: 173px">&nbsp;
                            <asp:Button ID="btnOk" runat="server" Text=" 登 记 " Width="58px" OnClick="btnOk_Click" />
                            <asp:Button ID="btnCancel" runat="server" Text=" 取 消 " Width="58px" OnClick="btnCancel_Click" /></td>
                        <td style=""></td>
                        <td style=""></td>
                        <td style=""></td>
                        <td style=""></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td align="center" style="">
                <asp:Button ID="btnBack" runat="server" CssClass="button" OnClick="btnBack_Click"
                    Text=" 返 回 " Width="89px" />
            </td>
        </tr>
    </table>
</asp:Content>
